package com.cennavi.config;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/** * @author  作者 :allen
    * @date 创建时间：2017年10月26日 下午6:03:10 
    * @version 1.0 
    */

public class FilePaths {
	String path_kafkaConfigFile;
	String path_kafkaConfigFile1;
	String path_kafkaConfigFile2;
	String path_sparkConfigFile;
	String path_dev_laneMap;
	String path_dev_rticMap;
	String path_rtic_roadMap;
	String path_rtic_capaMap;
	String path_road_capaMap;
	String path_rtic_kind_map;
	String path_rtic_freeFlowSpeed_map;
	String path_rtic_laneNum_map;
	//String path_queue;
	
	public void init(){
		Properties pro = new Properties();
//		String baseDir = System.getProperty("user.dir");
		try {
//			FileInputStream in = new FileInputStream(baseDir + "/configfiles/filePath.properties");
			FileInputStream in = new FileInputStream("/home/hadoop/azkaban/job/CennaviMineLabAnalysis_roadFlowCapacity-0.0.1-SNAPSHOT/configfiles/filePath.properties");
//			FileInputStream in = new FileInputStream("/home/hadoop/azkaban/testjob/roadNetworkFlow_XiAn-0.0.1-SNAPSHOT/configfiles/filePath.properties");
			
			pro.load(in);
			in.close();
			
			this.path_kafkaConfigFile = pro.getProperty("path_kafkaConfigFile");
			this.path_kafkaConfigFile1 = pro.getProperty("path_kafkaConfigFile1");
			this.path_kafkaConfigFile2 = pro.getProperty("path_kafkaConfigFile2");
			this.path_sparkConfigFile = pro.getProperty("path_sparkConfigFile");
			this.path_dev_laneMap = pro.getProperty("path_dev_laneMap");
			this.path_dev_rticMap = pro.getProperty("path_dev_rticMap");
			this.path_rtic_roadMap = pro.getProperty("path_rtic_roadMap");
			this.path_rtic_capaMap = pro.getProperty("path_rtic_capaMap");
			this.path_road_capaMap = pro.getProperty("path_road_capaMap");
			this.path_rtic_kind_map = pro.getProperty("path_rtic_kind_map");
			this.path_rtic_freeFlowSpeed_map = pro.getProperty("path_rtic_freeFlowSpeed_map");
			this.path_rtic_laneNum_map = pro.getProperty("path_rtic_laneNum_map");
			//this.path_queue = pro.getProperty("path_queue");
			
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}

	public String getPath_kafkaConfigFile() {
		return path_kafkaConfigFile;
	}

	public void setPath_kafkaConfigFile(String path_kafkaConfigFile) {
		this.path_kafkaConfigFile = path_kafkaConfigFile;
	}

	public String getPath_kafkaConfigFile1() {
		return path_kafkaConfigFile1;
	}

	public void setPath_kafkaConfigFile1(String path_kafkaConfigFile1) {
		this.path_kafkaConfigFile1 = path_kafkaConfigFile1;
	}
	
	public String getPath_kafkaConfigFile2() {
		return path_kafkaConfigFile2;
	}

	public void setPath_kafkaConfigFile2(String path_kafkaConfigFile2) {
		this.path_kafkaConfigFile2 = path_kafkaConfigFile2;
	}

	public String getPath_sparkConfigFile() {
		return path_sparkConfigFile;
	}
	
	public void setPath_sparkConfigFile(String path_sparkConfigFile) {
		this.path_sparkConfigFile = path_sparkConfigFile;
	}

	public String getPath_dev_laneMap() {
		return path_dev_laneMap;
	}

	public void setPath_dev_laneMap(String path_dev_laneMap) {
		this.path_dev_laneMap = path_dev_laneMap;
	}

	public String getPath_dev_rticMap() {
		return path_dev_rticMap;
	}

	public void setPath_dev_rticMap(String path_dev_rticMap) {
		this.path_dev_rticMap = path_dev_rticMap;
	}

	public String getPath_rtic_roadMap() {
		return path_rtic_roadMap;
	}

	public void setPath_rtic_roadMap(String path_rtic_roadMap) {
		this.path_rtic_roadMap = path_rtic_roadMap;
	}

	public String getPath_rtic_capaMap() {
		return path_rtic_capaMap;
	}

	public void setPath_rtic_capaMap(String path_rtic_capaMap) {
		this.path_rtic_capaMap = path_rtic_capaMap;
	}

	public String getPath_road_capaMap() {
		return path_road_capaMap;
	}

	public void setPath_road_capaMap(String path_road_capaMap) {
		this.path_road_capaMap = path_road_capaMap;
	}

	public String getPath_rtic_kind_map() {
		return path_rtic_kind_map;
	}

	public void setPath_rtic_kind_map(String path_rtic_kind_map) {
		this.path_rtic_kind_map = path_rtic_kind_map;
	}

	public String getPath_rtic_freeFlowSpeed_map() {
		return path_rtic_freeFlowSpeed_map;
	}

	public void setPath_rtic_freeFlowSpeed_map(String path_rtic_freeFlowSpeed_map) {
		this.path_rtic_freeFlowSpeed_map = path_rtic_freeFlowSpeed_map;
	}

	public String getPath_rtic_laneNum_map() {
		return path_rtic_laneNum_map;
	}

	public void setPath_rtic_laneNum_map(String path_rtic_laneNum_map) {
		this.path_rtic_laneNum_map = path_rtic_laneNum_map;
	}

	
//	public String getPath_queue() {
//		return path_queue;
//	}
//
//	public void setPath_queue(String path_queue) {
//		this.path_queue = path_queue;
//	}
	
}
